<include file="Public/min-header" /> <!--引入 js css img 文件-->
<link href="__PUBLIC__/css/page.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/rqjs/laydate.js"></script> <!--时间js控件-->
<script>
    function check()
    {
        var remname = $('input[name="remname"]').val();
        var opening = $('input[name="opening"]').val();
        var remittance = $('input[name="remittance"]').val();
        var paytime = $('input[name="paytimepaytime"]').val();
        var phone = $('input[name="phone"]').val();
        var note = $('input[name="note"]').val();
        if (remname == '')
        {
            alert('请输入汇款人');
            return false;
        }
        if (opening == '')
        {
            alert('清选择汇款行号');
            return false;
        }
        if (remittance == '')
        {
            alert('请输入金额');
            return false;
        }
        if (paytime == '')
        {
            alert('请输入汇款时间');
            return false;
        }
        if (phone == '')
        {
            alert('请输入电话');
            return false;
        }
        return true;
    }
</script>
<style>
    .dtbox:hover{
        cursor:pointer;
    }
</style>
</head>
<body>
    <!--导航  start //-->
    {:W('Cate/head')}  <!--引入头部导航  //-->
    <!--导航 End  //-->
    <div id="main">
        <!--右边菜单-->
        <div class="Side-box">
            <dl>
                <!--start -->
                 <dt class="dtbox">财务管理</dt>
                 <script>
                    $('.dtbox').click(function () {
                        if ($('#ss').css('display') == 'none')
                        {
                            $('#ss').css('display', 'block');
                        } else {
                            $('#ss').css('display', 'none');
                        }
                    });
                </script>
                <dd class="ddbox list-box" id="ss" style="display:none;">
                    <ul>
                        <li><a href="__ROOT__/Finance/cash_zz_Transfer.html">现金币互转</a></li>
                        <li><a href="__ROOT__/Finance/cash_zz_jhmoney.html">现金币转其它币</a></li>
                        <li><a href="__ROOT__/Finance/jhmoney_zz_Transfer.html">激活币互转</a></li>
                        <li><a href="__ROOT__/Finance/daylist.html">收益明细表</a></li>
<!--                        <li><a href="__ROOT__/Finance/monthlist.html">月收益明细表</a></li>-->
                        <li><a href="__ROOT__/Finance/account.html">账户管理</a></li>
                        <if condition='$tkpoundagekg eq 1'> <li><a href="__ROOT__/Finance/tikuan.html">积分提现登记</a></li></if>
                        <li><a href="__ROOT__/Finance/huikuan.html"  class="active">汇款充值登记</a></li>
                        <li><a href="__ROOT__/Finance/cashlist.html">现金币明细表</a></li>
                        <li><a href="__ROOT__/Finance/gfmoneylist.html">购物币明细表</a></li>
                        <li><a href="__ROOT__/Finance/bdmoneylist.html">报单币明细表</a></li>
                        <li><a href="__ROOT__/Finance/jhmoneylist.html">激活币明细表</a></li>
                        <li><a href="__ROOT__/Finance/ggmoneylist.html">购股币明细表</a></li>
                        <li><a href="__ROOT__/Finance/shareslist.html">股票币明细表</a></li>
               <!--         <li><a href="__ROOT__/Finance/jfmoneylist.html">购物积分明细</a></li>-->
                    </ul>
                </dd>
            </dl>
            <!--快捷导航  start//-->
            {:W('Cate/nav')}  <!-- 引入快捷导航 //-->
            <!-- 快捷导航 End //-->
        </div>
        <!--右边菜单End-->
        <div class="mainfr-box">
            <div class="place">
                <span>当前位置：</span>
                <ul class="placeul">
                    <li><a href="#">财务管理 »</a></li>
                    <li><a href="#">添加汇款通知</a></li>
                </ul>
                <ul class="placeula">
                    <li><a href="javascript:location.reload()"><span class="placea"></span>刷新</a></li>
                    <li><a href="javascript:history.go(-1)"><span class="placea"></span>返回上一页</a></li>
                </ul>
            </div>
            <div class="clr"></div>
            <div class="main">
                <form method="post" action="{:U('huikuan')}" onsubmit="return check();">
                    <input name="u_name" type="hidden" value="{$Think.session.dluser.account} ">
                    <table class="Register-table2"><tr><th>添加汇款通知</th></tr> </table>
                    <table width="100%" border="0" class="Register-table">
                        <tr class="odd">
                            <th>选择汇款账银行：</th>
                            <td colspan="3">
                        <foreach name="list" item="val">
                            <li><input name="opening" type="radio" value="{$val['opening']}">{$val['opening']}&nbsp;|&nbsp;{$val['name']}&nbsp;|&nbsp;{$val['account']}&nbsp;|&nbsp;{$val['address']}</li>
                        </foreach> 
                        </td>
                        </tr>
                        <tr class="odd">
                            <th scope="row">汇款人：</th>
                            <td><input name="remname" type="text" class="scinput" style="float: left;"></td>
                            <th scope="row">金额：</th>
                            <td><input name="remittance" type="text" class="scinput"><span id="ye">1 $ = {$hkbl} ￥</span></td>
                        </tr>
                        <tr class="odd">
                            <th scope="row">汇款时间：</th>
                            <td><input name="paytime" type="text" class="scinput" onClick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" ></td>
                            <th scope="row">联系电话：</th>
                            <td><input name="phone" type="text" class="scinput"></td>
                        </tr>
                        <tr class="odd">
                            <th>备注：</th>
                            <td colspan="3">
                        <li><input name="note" type="text" class="scinput" style="width:358px;"></li>

                        </td>
                        </tr>
                    </table>
                    <div class="button-box"> <input class="button-style" type="submit" id="but" value="确认提交" ></div>
                </form>
                <table class="Inquire-table2">
                    <tr>
                        <th>ID</th>
                        <th>汇款银行</th>
                        <th>汇款金额 (￥ )</th>
                        <th>$</th>
                        <th>汇款时间</th>
                        <th>汇款人姓名</th>
                        <th>联系电话</th>
                        <th>壮态</th>
                        <th>备注</th>
                    </tr>
                    <foreach name="lista" item="val">
                        <tr>
                            <td>{$val['id']}</td>
                            <td>{$val['opening']}</td>
                            <td>{$val['remittance']}</td>
                            <td>{$val['total']}</td>
                            <td>{$val['paytime']}</td>
                            <td>{$val['remname']}</td>
                            <td>{$val['phone']}</td>
                            <td>
                        <switch name="val.status"><case value="1">待处理</case><case value="2"><span style="color:#0000cc">充值成功</span></case><case value="3"><span style="color:red">充值失败 【{$val['fail']}】</span></case></switch>
                        </td>
                        <td>
                            {$val['note']}
                        </td>
                        </tr> 
                    </foreach>
                </table>
                <div class="pages"><div align="right">{$page}</div></div>
            </div>
        </div>

        <!--foot-->
        <div class="clr"></div>
        <!--footer start //-->
        {:W('Cate/footer')}  <!--引入底部 //-->
        <!--footer  end //-->
</body>
</html>